#include<stdio.h>
#include<unistd.h>
//验证僵尸进程
int main(int argc,char* argv[])
{
	pid_t pid=fork();
	if(pid==0)//if是子进程
		puts("Hi,I am a child process");
	else//if是父进程
	{
		printf("Child Process ID:%d\n",pid);
		sleep(30);
	}
	if(pid==0)
		puts("End child process");
	else
		puts("End parent process");
	return 0;
}
